package com.lixl.singlemodel;

public class Main {

	public static void main(String[] args) {
		
		int n = 0;
		while(n<10000){
			Task task = new Main.Task();
			task.start();
			n++;
		}
		
		
		
	}
	
	static class Task extends Thread{
		
		@Override
		public void run() {
			Demo demo = Demo.getInstance();
			int n=0;
			while(n<100){
				demo.setName("demo name-"+(n++));
				System.out.println(demo.getName()+"\t"+this.getName());
			}
		}
		
	}

}
